home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Games: Greatest Hits 1996
/
Amiga Games: Greatest Hits 1996.iso
/
archive
/
userbox
/
publicdomain
/
frexxed.lha
/
frexxed
/
fpl
/
AutoMatch.FPL
< prev
next >
Wrap
Text File
|
1995-07-19
|
444b
|
17 lines
export void AutoMatch(string paren)
{
Output(paren); // Output the character
CursorLeft(1); // Step back to the character
if (MatchParen()>=0) { // Try to match it
Delay(4); // Make a delay
MatchParen(); // Match it back
} else
ReturnStatus("No match!"); // No match!
CursorRight(1); // Step forward
}
AssignKey("AutoMatch(\")\");", ")");
AssignKey("AutoMatch(\"}\");", "}");
AssignKey("AutoMatch(\"]\");", "]");